package com.kensure.mycom.area.service;

import java.util.Collection;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import co.kensure.frame.JSBaseService;

import com.kensure.mycom.area.dao.BaseAreaDao;
import com.kensure.mycom.area.model.BaseArea;

/**
 * 区县服务实现类
 * 
 * @author fankd created on 2019-6-12
 * @since
 */
@Service
public class BaseAreaService extends JSBaseService {

	@Resource
	private BaseAreaDao dao;

	public BaseArea selectOne(Long id) {
		return dao.selectOne(id);
	}

	public List<BaseArea> selectByIds(Collection<Long> ids) {
		return dao.selectByIds(ids);
	}

	public List<BaseArea> selectAll() {
		return dao.selectAll();
	}

	public List<BaseArea> selectByWhere(Map<String, Object> parameters) {
		return dao.selectByWhere(parameters);
	}

	public long selectCount() {
		return dao.selectCount();
	}

	public long selectCountByWhere(Map<String, Object> parameters) {
		return dao.selectCountByWhere(parameters);
	}

	public boolean insert(BaseArea obj) {
		return dao.insert(obj);
	}

	public boolean insertInBatch(List<BaseArea> objs) {
		return dao.insertInBatch(objs);
	}

	public boolean update(BaseArea obj) {
		return dao.update(obj);
	}

	public boolean updateByMap(Map<String, Object> params) {
		return dao.updateByMap(params);
	}

	public boolean delete(Long id) {
		return dao.delete(id);
	}

	public boolean deleteMulti(Collection<Long> ids) {
		return dao.deleteMulti(ids);
	}

	public boolean deleteByWhere(Map<String, Object> parameters) {
		return dao.deleteByWhere(parameters);
	}

}
